package com.ls.thread.singleton;

public class Singleton {
	
	private static Singleton singleton=null;
	private Singleton(){
		
	}
	
	@SuppressWarnings("static-access")
	public /*synchronized*/ static Singleton getIntance(){
		
		if(singleton==null){
			try {
				Thread.currentThread().sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			singleton=new Singleton();
		}
		return singleton;
	}

}
